//
//  TeaCardCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/3/19.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "TeaCardCell.h"

@interface TeaCardCell()

@property (weak, nonatomic) IBOutlet UILabel *cardLab;

@end

@implementation TeaCardCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setStr:(NSString *)str
{
    _str = str;
    self.cardLab.text = str;
}

+ (CGFloat)calculateStrHeight:(NSString *)str
{
    return [str boundingRectWithSize:CGSizeMake(ScreenW-30, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:Font(12)} context:nil].size.height+25;
}


@end
